import Vue from 'vue'
import App from './App.vue'
// 引入element ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
//设置后台访问跟路径
axios.defaults.baseURL = 'http://localhost:8086/'
//挂载axios，挂载到Vue原型上，就可以在所有的组件中通过this.$http访问axios
Vue.prototype.$http = axios;
//引入cookies
import cookies from 'vue-cookies';
Vue.prototype.$cookies = cookies;

import router from './router'
import store from './store'

Vue.config.productionTip = false

Vue.use(ElementUI)


new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
